import request from '@/common/js/request.js'

// 预警信息 API接口
const cre_warningApi = {
    queryList: '/cre_warning/queryList',
    findListByPerid: '/cre_warning/findListByPerid',
}

/**
 * 根据人员id查询预警记录
 * @param {*} ids
 */
export function findListByPerid (perid) {
    return request({
        url: cre_warningApi.findListByPerid,
        method: 'post',
        params: {perid}
    })
}

/**
 * 查询预警处置任务关联查询预警信息数据
 */
 export function queryList(pageinfo) {
    return request({
        url: cre_warningApi.queryList,
        method: 'post',
        data: pageinfo
    })
}
